Hello World Program in Eclipse (a) Create a java class by the name Greet (b) It should print "Program Successful" when executed
Title
Question
<pre style="font-family: "JetBrains Mono", monospace; font-size: 9.8pt;"><font color="#000000">public class Greet{
public static void main(String[] args){
System.<span style="font-style: italic;">out</span>.println("Program Successful");
}
}</font></pre>
public static void main(String[] args){
System.<span style="font-style: italic;">out</span>.println("Program Successful");
}
}</font></pre>
Java First-Java-Program 01-02 min 30-40 sec
Answers:
public class Greet
{
public static void main(String ARGS[])
{
System.out.println("Program Successful");
}
}
//(a)
public class Greet{
public static void main(String ARGS[])
{
System.out.println("Good Morning");
}
}
Login to add comment